//
//  e7lock.cpp
//  e7engine
//
//  Created by cc on 12-6-12.
//  Copyright (c) 2012年 cc. All rights reserved.
//

#include "e7lock.h"

namespace e7engine {
    CE7Lock::CE7Lock()
    {
        pthread_mutex_init(&m_insMutex, 0) ;
    }

    CE7Lock::~CE7Lock()
    {
        pthread_mutex_destroy(&m_insMutex) ;
    }
    
    void CE7Lock::Lock()
    {
        pthread_mutex_lock(&m_insMutex) ;
    }
    
    void CE7Lock::UnLock()
    {
        pthread_mutex_unlock(&m_insMutex) ;
    }
}














